package cn.itcast.extends_;

/**
 * @title: PC
 * @Author Zhou
 * @Date: 2022/1/26 16:01
 * @Version 1.0
 */
public class PC extends Computer {
    String monitor;
    private String brand;

    public String getMonitor() {
        return monitor;
    }

    public void setMonitor(String monitor) {
        this.monitor = monitor;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public void printInfo() {
        System.out.println(getDetail() + " brand=" + brand);
    }

    public PC(String cpu, int memory, int disk, String brand) {
        super(cpu, memory, disk);
        this.brand = brand;
    }
}
